package com.makejl.framework;

import java.util.List;

import javax.persistence.Query;

public interface BaseDAO<T> {
	public T find(Class<T> clazz,int id);
	
	public void create(T baseBean);
	
	public void save(T baseBaen);
	
	public void delete(T baseBean);
	
	public List<T> list(String hql);
	
	public int getTotalCount(String hql,Object... params);
	
	public Query read(String hql);
}
